# encoding = utf-8
class Building < ActiveRecord::Base
  has_many :infos

  validates :name, :presence  => true
  validates :address, :presence  => true
  
  def status_show
    if self.status == BUILDING_STATUS_USABLE
      '正常'
    elsif self.status == BUILDING_STATUS_DISABLE
      '禁用'
    end
  end
end
